package Reminder.domain;

import com.alibaba.fastjson.JSONObject;

public class Message {
    private String header;
    private String data;
    private String status;

    public Message(String header, String data, String status) {
        this.header = header;
        this.data = data;
        this.status = status;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return toJSON().toString();
    }
    public JSONObject toJSON(){
        JSONObject res = new JSONObject();
        res.put("header",header);
        res.put("data",data);
        res.put("status",status);
        return  res;
    }
}
